package north

import (
	"iot-base/common/maintain"
	"iot-base/common/mqtt"
)

func handleUpgrade(client mqtt.IOTMQTTBroker, topic string, pCmd *mqtt.Cmd) {
	if pCmd.Body != nil {
		pUpgrade, _ := pCmd.Body.(*maintain.UpgradeCmd)
		if pUpgrade != nil {
			maintain.UpgradeByURL(*pUpgrade)
		}
	}

}
